package com.power.wx.action;

import java.util.Map;

import javax.servlet.http.HttpServletRequest;

import org.apache.log4j.Logger;
import org.apache.struts2.interceptor.RequestAware;
import org.apache.struts2.interceptor.ServletRequestAware;

public class WxAction implements RequestAware, ServletRequestAware {

	private static final Logger logger = Logger.getLogger(WxAction.class);

	public String execute() {
//		ServletActionContext.getActionContext(req)
		System.out.println(request);
		logger.info(request);
		logger.info(httpServletRequest);
		return "success";
	}

	private Map<String, Object> request;
	private HttpServletRequest httpServletRequest;

	public void setRequest(Map<String, Object> request) {
		this.request = request;
	}

	public void setServletRequest(HttpServletRequest request) {
		this.httpServletRequest = request;
	}
}
